import request from '@/utils/request'

const api_name = `/user/userinfo/wx`
export default {
    getLoginParam() {
        return request({
            url: `${api_name}/param`,
            method: `get`
        })
    },
    createNative(orderId) {
        return request({
            url: `/user/order/wx/${orderId}`,
            method: 'get'
        })
    },
    queryPayStatus(orderId) {
        return request({
            url: `/user/order/wx/status/${orderId}`,
            method: 'get'
        })
    },
    cancelOrder(orderId) {
        return request({
            url: `/api/order/orderInfo/cancelOrder/${orderId}`,
            method: 'get'
        })
    }
}